package com.cloudkinto.service.product.vo;

import com.cloudkinto.common.utils.StringsUtil;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Date;

/**
 * @author zhangyy
 * @date 2020/6/5 14:38
 * @description:
 */
@Data
public class ProductPageRes {
    private Long id;
    /**
     * 顾客SKU
     */
    private String commoditySku;

    /**
     * 仓库SKU
     */
    private String storageSku;

    /**
     * 产品名称（日）
     */
    private String commodityName;

    /**
     * 产品名称（中）
     */
    private String productName;

    /**
     * 产品分类
     */
    private String productType;

    /**
     * 产品长度
     */
    private Float length;

    /**
     * 产品宽度
     */
    private Float width;

    /**
     * 产品高度
     */
    private Float height;

    /**
     * 成本价
     */
    private Float reportPrice;

    private Integer count;

    private Integer deleteFlag;

    private String companyCode;

    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private Date createTime;

    private float weight;
    private Long casePack;
    @ApiModelProperty("图片")
    private String productPictureFileUrl;

    @ApiModelProperty("类别 普通产品 common  组合产品 combination")
    private String typeOfProduct;

    @ApiModelProperty("fn_sku")
    private String fnSku;

    @ApiModelProperty("是否投保")
    private Boolean isInsure;

    @ApiModelProperty("投保金额")
    private Double insureAmount;

    private String upc;

    public String getProductType() {
        return StringsUtil.createI18Message(productType);
    }


}
